<html>
<head><meta charset="utf-8"><title>Only checking doctest · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html">Only checking doctest</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220493054"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220493054" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220493054">(Dec 19 2020 at 23:33)</a>:</h4>
<p>I want to run <code>check</code> for all doc tests in rust-lang/rust, how can I do this using <code>x.py</code> ?</p>



<a name="220493374"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220493374" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220493374">(Dec 19 2020 at 23:42)</a>:</h4>
<p>I'm confused what you mean by check a doc test</p>



<a name="220493375"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220493375" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220493375">(Dec 19 2020 at 23:42)</a>:</h4>
<p>but you can run all doctests with <code>x.py test --doc</code></p>



<a name="220495468"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220495468" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220495468">(Dec 20 2020 at 00:48)</a>:</h4>
<p>I think <span class="user-mention silent" data-user-id="307289">Poliorcetics</span> means the equivalent of <code>cargo check</code> rather than building and running the doctests.</p>



<a name="220500456"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220500456" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220500456">(Dec 20 2020 at 03:31)</a>:</h4>
<p>Oh, I don't know if rustdoc let's you do that</p>



<a name="220511396"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220511396" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Poliorcetics <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220511396">(Dec 20 2020 at 09:30)</a>:</h4>
<p>Exactly what Camelid said. I only need to check if my changes to rustdoc make the check pass for each doc test or not and running x.py test —doc is long</p>



<a name="220527079"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Only%20checking%20doctest/near/220527079" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Only.20checking.20doctest.html#220527079">(Dec 20 2020 at 16:42)</a>:</h4>
<p>I think it's long/slow not due to execution, but mostly because they are built individually. A bunch of checks instead of builds could be a little faster, but maybe not much since they are just debug builds.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>